//
// Created by Administrator on 2022/10/13 0013.
//

#ifndef ONIX_DEBUG_H
#define ONIX_DEBUG_H

void debugk(char *file, int line, const char *fmt, ...);

// bochs magic breakpoint
#define BMB __asm__ volatile("xchgw %bx, %bx")
#define DEBUGK(fmt, args...) debugk(__BASE_FILE__, __LINE__, fmt, ##args)

#endif //ONIX_DEBUG_H
